[class^="ec-icon-"] {
  // font-family: "Avenir", Helvetica, Arial, sans-serif, "FontAwesome";
  font: normal normal normal 1.6rem/1 "FontAwesome", sans-serif;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  transform: translate(0, 0);
  margin: 0 5px;
}

.el-dialog__header {
  padding: 0 !important;
}

.el-dialog__body {
  padding: 2rem !important;

  .el-form-item__label {
    width: 120px !important;
  }
}

.bindWindos {
  .el-dialog__body {
    padding-top: 0 !important;
  }
}

.el-dialog__wrapper {
  transition-duration: 0.3s;
}

.dialog-fade-enter-active {
  animation: none !important;
}

.dialog-fade-leave-active {
  transition-duration: 0.15s !important;
  animation: none !important;
}

.dialog-fade-enter-active .el-dialog,
.dialog-fade-leave-active .el-dialog {
  animation-fill-mode: forwards;
}

.dialog-fade-enter-active .el-dialog {
  animation-duration: 0.3s;
  animation-name: anim-open;
  animation-timing-function: cubic-bezier(0.6, 0, 0.4, 1);
}

.dialog-fade-leave-active .el-dialog {
  animation-duration: 0.3s;
  animation-name: anim-close;
}


@keyframes anim-open {
  0% {
    opacity: 0;
    transform: scale3d(0, 0, 1);
  }

  100% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}


@keyframes anim-close {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale3d(0.5, 0.5, 1);
  }
}

.my-refresh {
  width: 28px;
  height: 28px;
  margin: 0 10px !important;
}

.el-tree-node__content:hover {
  background-color: unset !important;
  color: #4a97eb;
}

// 其他样式：
::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 10px;
  /*高宽分别对应横竖滚动条的尺寸*/
  height: 10px;
}

::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: rgba(153, 153, 153, 0.5);
}

::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  background: #ededed;
}

//应对vue element菜单栏收起修改样式
.el-menu--vertical {
  .el-menu--popup {
    min-width: 100px !important;
  }

  ul {
    background-color: #0C101B !important;

    .el-menu-item-group__title {
      display: none;
    }

    li {
      line-height: 40px;
      height: 40px;
      color: #dadada !important;

      &:hover,
      .is-active {
        background-color: #0066FF;
        color: #fff !important;
      }
    }
  }
}

//vuescroll滚动条
.__view {
  width: unset !important;
}

//element时间选择器
.el-time-panel {
  left: -30px !important;
}

.myDropdown {
  margin: 0 10px;

  .filter {
    background: url("../../assets/img/track/filter.png") no-repeat center;
    // background-size: 100% 100%;
    width: 32px;
    height: 32px;
    border-radius: 5px;
    border: 1px solid #dcdfe6;
    box-sizing: border-box;
    cursor: pointer;
  }
}

//element菜单栏
.el-dropdown-menu {
  max-height: 300px !important;
  overflow: auto;
  margin-top: 5px !important;

  .el-checkbox-group {
    .el-checkbox {
      display: flex;
      align-items: center;
    }

    .el-checkbox__label {
      display: flex;
      align-items: center;
    }

  }

  .el-dropdown-menu__item {
    display: flex;
    align-items: center;
  }
}


// .el-tooltip样式
.el-tooltip__popper {
  max-width: 50%;
}

// el-select多选回显样式不居中问题
.el-select__input {
  display: none !important;
}

//车辆状态标签
.car-tag {
  line-height: 24px;
  font-size: 12px;
  padding: 0 8px;
  display: inline-block;
  border-radius: 3px;
}

.carDrive {
  color: #05b92f;
  background: #ddf5e0;
}

.carFlameout {
  color: #ff6b66;
  background: #ffebeb;
}

.carStop {
  color: #004fe9;
  background: #bddeff;
}

.carCommunicationOutage {
  color: #424242;
  background: #ebebeb;
}

.poiFail {
  color: #FF8C00;
  background: #FFF3B6;
}

// 1077车辆图标样式
.map-icon {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 28px;
  height: 28px;
  z-index: 1;
}

.map-icon-back {
  position: absolute;
  top: -21px;
  // top: -12px;
  left: -21px;
  width: 50px;
  height: 50px;
  z-index: 0;
}

.map-text {
  font-size: 14px;
  background-color: rgba(0, 0, 0, 0.5);
  width: fit-content;
  position: absolute;
  left: 36px;
  top: -4px;
  padding: 0 4px;
  white-space: nowrap;

  .map-triangle {
    position: absolute;
    left: -10px;
    top: 3px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-right: 10px solid rgba(0, 0, 0, 0.5);
    border-bottom: 7px solid transparent;
  }
}

.vxe-header--row {
  background: #F3F6FB;
  color: #424242;
}

.treeselect {
  .el-form-item__content {
    height: 32px;
  }
}


.leaflet-div-icon {
  border: 2px solid #0066FF;
  width: 8px !important;
  height: 8px !important;
  margin-left: -6px !important;
  margin-top: -6px !important;
}

// 与修改textarea字体, 使之与input字体一样，
textarea {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

// 用element-ui的时间组件时，去掉“清除”按钮时，在组件内的<style>标签内，添加样式的修改不起作用。
// 在<el-date-picker>这个标签内加入popper-class="noShowClear"，这个是官方提供的日期弹出层添加样式的方法，用这个classname做限制，不想显示“清除”的，就加上这个，想显示的，就去掉它即可。
.el-picker-panel.noShowClear {
  .el-button--text.el-picker-panel__link-btn {
    display: none;
  }
}

.dropdown-popover {
  min-width: 100px !important;
  padding: 0 !important;
  margin-top: -10px !important;

  .my-dropdown {
    li {
      line-height: 40px;
      padding: 0 12px;
      cursor: pointer;

      .icon {
        margin-right: 4px;
      }

      &:hover {
        color: #66b1ff;
        background-color: #ecf5ff;
      }
    }
  }
}